package com.jbh.request.request

import com.google.gson.Gson
import com.jbh.request.bean.AppRequestBaseData

class BaseRequest(map: MutableMap<String, Any> = mutableMapOf<String, Any>()) {

    private val baseMap = mutableMapOf<String, Any>()
    var json = ""
    init {
        val tempBaseMap = AppRequestBaseData(UserId = "edf2eed8-4c5b-459e-b2fe-c6d444518bbd").body()
        tempBaseMap.putAll(map)
        baseMap["data"] = tempBaseMap
        json = Gson().toJson(baseMap)
    }
}